#ifndef FUZZYRULES_H_
#define FUZZYRULES_H_
#include <QtGui>
//#include <QAbstractTableModel>
//#include <QModelIndex>
#include "FuzzyTableModel.h"

// ======================================================================
class CFuzzyRulesForm: public QWidget
{
	Q_OBJECT
private:
    QString m_strFileName;
    FuzzyTableModel* m_table;
    QGraphicsScene* mpScene;
    QGraphicsView* mpView;
    QPushButton* mpBtnOk;

public:
	CFuzzyRulesForm(FuzzyTableModel* pTblModel = 0, QGraphicsScene* pGS = 0, QWidget * parent = 0);
    ~CFuzzyRulesForm();
    
protected:
	//void paintEvent(QPaintEvent * event);
	void drawAxes();
	void drawGraph();

signals:
    void changeWindowTitle(const QString&);

public slots:
    void slotLoad  ();
    void slotSave  ();
    void slotSaveAs();
};
#endif /*FUZZYRULES_H_*/
